<?php function theme_init(){
	load_theme_textdomain('paranimage', get_template_directory() . '/languages');
}
add_action ('init', 'theme_init');
?>
<?php
if ( function_exists('register_sidebars') )
	register_sidebars(3, array(
		'name'=>'Sidebar %d',
        'before_widget' => '<div id="%1$s" class="widget %2$s">',
        'after_widget' => '</div>',
        'before_title' => '<h3 class="widgettitle"><span>',
        'after_title' => '</span></h3><div class="widgetcontent">',
    ));
?>
<?php function custom_comment($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment;
global $commentcount;
    if(!$commentcount) $commentcount = 0;
    $commentcount ++;
 ?>
<li <?php comment_class(); ?> id="comment-<?php comment_ID( ); ?>">
	<?php 
		$default_avatar = get_bloginfo('template_url').'/images/default_avatar.gif';
		echo get_avatar( $comment, 37, $default_avatar); ?>
	<span class="commentauthor"><?php comment_author_link() ?></span> <?php _e('says', 'paranimage'); ?>:
	<br />
	<small class="commentmetadata">
	<?php comment_date('l, j F, Y') ?> <?php _e('at', 'paranimage'); ?> <?php comment_date('G:i') ?><?php edit_comment_link( __('Edit', 'paranimage'),' &nbsp;|&nbsp; ',''); ?></small>
	<br />
	<div class="commenttext"><?php if ($comment->comment_approved == '0') : //message if comment is held for moderation ?>
	<em class="comment-notice"><?php _e('Your comment is awaiting moderation', 'paranimage'); ?>.</em>
	<?php endif; ?><?php comment_text(); ?></div>
	<span class="commentcount"><?php if($commentcount < 10) echo '0'; echo $commentcount; ?></span>
	<span class="commentaddons">
		<a href="<?php the_permalink(); ?>/#comment-<?php comment_ID(); ?>"><?php _e('Permalink','paranimage') ?></a> | 
		<?php echo comment_reply_link(array('reply_text' => __('Reply', 'paranimage'), 'depth' => $depth, 'max_depth' => $args['max_depth']));  ?>
	</span>
<?php } ?>
<?php function custom_pings($comment, $args, $depth) {
       $GLOBALS['comment'] = $comment; ?>
<li <?php comment_class(); ?> id="comment-<?php comment_ID( ); ?>">
    <?php comment_author_link() ?> - <small><?php comment_date('l, j F, Y') ?></small> - <?php edit_comment_link( __('Edit', 'paranimage'),'<br /> &nbsp;|&nbsp; ',''); ?>
<?php } ?>